{layout name="public/layout" /}
{include file='yxnavbar'}


{include file='../../plugin/shopplan/template/web/shopplan_common_nav'}
{if $system['is_shop_plan']==1}
<form id="form2"  action="{php echo createWebUrlPlugin('shopplan.setplan',array('id'=>$id,'themeid'=>$themeid,'shopid'=>$shopid));}" enctype ="multipart/form-data" method="post">

<div class="panel panel-default" role="tabpanel" style="">
	<div class="col-xs-12 col-sm-2 col-md-2" style="float:left;">
		<select name="shopid" id="mySelect">
			{loop $shopconfig $k $item}
				<option value="{$item['shopid']}" {if $item['shopid']== $shopid}selected{/if}>{$item['name']}</option>
			{/loop}
		</select>
	</div>	
    <div class="panel-heading">门店规划</div>
       <div class="panel-body" style="">
	   
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周一时间规划</label>
					<div>
						<select name="week01">
							<option disabled selected>请选择</option>
							<option value="holiday" {if $week_w['week01']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week01']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}
						</select>
						{loop $weekinfo['week01'] $k $times}
							<span>【{$times}/{$weeknums['week01'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周二时间规划</label>
					<div>
						<select name="week02">
							<option disabled selected>请选择</option>
							<option value="holiday"  {if $week_w['week02']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week02']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week02'] $k $times}
							<span>【{$times}/{$weeknums['week02'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>			
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周三时间规划</label>
					<div>
						<select name="week03">
							<option disabled selected>请选择</option>
							<option value="holiday"  {if $week_w['week03']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week03']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week03'] $k $times}
							<span>【{$times}/{$weeknums['week03'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>							
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周四时间规划</label>
					<div>
						<select name="week04">
							<option disabled selected>请选择</option>
							<option value="holiday" {if $week_w['week04']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week04']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week04'] $k $times}
							<span>【{$times}/{$weeknums['week04'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>	
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周五时间规划</label>
					<div>
						<select name="week05">
							<option disabled selected>请选择</option>
							<option value="holiday" {if $week_w['week05']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week05']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week05'] $k $times}
							<span>【{$times}/{$weeknums['week05'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>	
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周六时间规划</label>
					<div>
						<select name="week06">
							<option disabled selected>请选择</option>
							<option value="holiday" {if $week_w['week06']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week06']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week06'] $k $times}
							<span>【{$times}/{$weeknums['week06'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>	
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><b></b></label>
                <div class="col-sm-9 col-xs-12">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>周日时间规划</label>
					<div>
						<select name="week07">
							<option disabled selected>请选择</option>
							<option value="holiday" {if $week_w['week07']== 'holiday'}selected{/if}>休息日</option>
							{loop $tplitem $k $tplitems}
								<option value="{$tplitems['id']}" {if $week_w['week07']== $tplitems['id']}selected{/if}>{$tplitems['tplname']}</option>
							{/loop}								
						</select>
						{loop $weekinfo['week07'] $k $times}
							<span>【{$times}/{$weeknums['week07'][$k]}】</span>
						{/loop}

					</div>
				</div>
			</div>	


		</div>
	</div>
</div>
	
<!-- <div class="panel panel-default" role="tabpanel" style="">
    <div class="panel-heading">虚拟数据日</div>
       <div class="panel-body" style="">	
            <div class="form-group">
                <label class="col-sm-2 col-xs-12 control-label"><b></b></label>
                <div class="col-sm-8 col-xs-12">
					<label class="radio-inline">每天模拟数量<input type="number"  style=" width:60px; height:30px; margin-left:30px;" name="virtualnums" min="1" value="{$virtualnums}"></label>
                </div>
            </div>	   			
		</div>
	</div> -->

			
<div class="form-group">
	<div class="col-sm-8 col-xs-12">
		<input name="submit" id="btn_submit" type="submit" value="提交" class="btn btn-primary col-lg-1" >
		<input type="hidden" name="__token__" value="{$Request.token}" />				
	</div>
</div>	 

</form>	
{/if} 
<script>
	//分店选择事件
    $("#mySelect").change(function(){  
		//添加所需要执行的操作代码
		var shopid =$("#mySelect").val();
		var success_redirect ="{php echo createWebUrlPlugin('shopplan.setplan',array('themeid'=>$themeid));}";
		    success_redirect+='&shopid='+shopid;
            window.location.href = success_redirect;
		  
    })    
</script>
